package one.stand.mapper;

import one.stand.model.CompanyCustomerLableModel;
import one.stand.response.CompanyCustomerLableResponse;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author Administrator
 */
public interface CompanyCustomerLableMapper {
    int deleteByPrimaryKey(CompanyCustomerLableModel record);

    int delCompanyLable(Integer companyId);

    /**
     * 获取公司标签树
     *
     * @param record
     * @return
     */
    List<CompanyCustomerLableResponse> getTree(CompanyCustomerLableModel record);

    int insertSelective(CompanyCustomerLableModel record);

    CompanyCustomerLableModel selectByPrimaryKey(Integer lableId);

    /**
     * 获取每个客户的标签
     *
     * @param record
     * @return
     */
    List<CompanyCustomerLableModel> selectCustomerLable(CompanyCustomerLableModel record);

    /**
     * 根据id获取标签名
     *
     * @param lableIds
     * @return
     */
    List<CompanyCustomerLableModel> selectLibles(@Param("lableIds") Integer[] lableIds);

    /**
     * 修改标签
     * @param record
     * @return
     */
    int updateByPrimaryKeySelective(CompanyCustomerLableModel record);

}